using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Bulb.Test.RepositoryTests
{
    [TestClass]
    public class DeleteTests
        : RepositoryTests
    {
        [TestMethod]
        public void TestThatAddAddsBulbToRepository()
        {
            Assert.AreEqual(3, MockBulbItemRepository.All().Count);

            var deleteBulbItem = MockBulbItemRepository.Get(1);
            MockBulbItemRepository.Delete(deleteBulbItem);

            Assert.AreEqual(2, MockBulbItemRepository.All().Count);

            deleteBulbItem = MockBulbItemRepository.Get(1);
            Assert.IsNull(deleteBulbItem);
        }
    }
}